import React from 'react';
import 'gitalk/dist/gitalk.css';
import GitalkComponent from 'gitalk/dist/gitalk-component';

export default ({ id }: { id: string }) => {
  return (
    <GitalkComponent
      options={{
        clientID: '0259e9879ce2154fa035',
        clientSecret: 'bc24c9940874af91c4fae2e74f6249f0efef64e9',
        repo: 'lucas270.github.io', //存放评论的仓库名
        owner: 'lucas270', //github用户名
        admin: ['lcuas270'], //这博客仓库可以操作的用户名
        id: id, //唯一值，用来标记是哪个页面的评论，可以用window.location.pathname
      }}
    />
  );
};
